package top.infopub.mgr.adm.service;

import java.util.List;

import com.github.pagehelper.Page;

import top.infopub.mgr.adm.domain.BorrowRecordDomain;
import top.infopub.mgr.adm.vo.BorrowRecordVo;
import top.infopub.model.adm.BorrowRecord;
import top.infopub.model.adm.BorrowRecordList;
import top.infopub.generic.GenericService;

public interface BorrowRecordService extends GenericService<BorrowRecord, String> {
 
    /**
     * 根据条件查询档案借阅申请记录
     * @param BorrowRecordVo
     * @return 
     * @see
     */
    Page<BorrowRecordDomain> selectByDomainWhere(Page<BorrowRecordDomain> page,BorrowRecordVo borrowRecordVo);

    /**
     * 根据条件查询档案借阅申请记录--我审批的列表
     * @param BorrowRecordVo
     * @return 
     * @see
     */
    Page<BorrowRecordDomain> selectMyCheckByDomainWhere(Page<BorrowRecordDomain> page,BorrowRecordVo borrowRecordVo);
    
    /**
     * 详情
     */
    BorrowRecordVo queryById(String id);
    
    /**
     * 新增
     */
    void saveBorrowRecord(BorrowRecord borrowRecord,List<BorrowRecordList> borrowRecordLists);
    
}